package com.lanchetech.dao;
import java.util.Date;

import com.lanchetech.bean.vo.PartnerRankVO;
import com.lanchetech.entity.RankRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RankRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RankRecord record);

    int insertSelective(RankRecord record);

    RankRecord selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RankRecord record);

    int updateByPrimaryKey(RankRecord record);

    int batchInsert(@Param("list") List<RankRecord> rankRecords);

    List<PartnerRankVO> findAllByDateAndType(@Param("date")Date date, @Param("type")Byte type);


}